package com.wxm.common.file.core.exception;


import java.util.Objects;

/**
 * <p>
 *      File异常类
 * </p>
 *
 * @author wxm
 * @Date 2021/11/11
 */
public class FileException extends RuntimeException {
    public FileException(String msg){
        super(msg);
    }
    public static void error(String message){
        throw new FileException(message);
    }

    public static void isNull(Object value, String msg) {
        if (Objects.isNull(value)){
            throw new FileException(msg);
        }
    }
}
